 {% extends "base.html" %}

 {% block title %}RDFLib SPARQL Endpoint{% endblock %}

 {% block body %}
   {% block intro %}
    <h1>RDFLib SPARQL Endpoint</h1>

    <p>This is a <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a> endpoint, conforming to the <a href="http://www.w3.org/TR/rdf-sparql-protocol/">SPARQL Protocol</a> powered by <a href="http://code.google.com/p/rdflib/">rdflib</a>. Some extension from <a href="http://www.joseki.org/">Joseki</a> are also included.</p>
{% endblock %}
{% block query %}
<h2><a name='query'>Query:</a></h2>
    <form action="{{url_for("query")}}" name="query" method="GET">
      <textarea rows="10" cols="80" name="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX dc: &lt;http://purl.org/dc/elements/1.1/&gt;

SELECT * WHERE { ?x dc:title ?label . }
      </textarea><br/>
      <label>Result format:</label> <select name="output">
        <option>xml</option>
        <option>json</option>
        <option>html</option>
      </select>
      <br/>
      <label>Force text/plain:</label><input type="checkbox" name="force-accept" /><br/>
      <input type="submit" value="query">
    </form>
{% endblock %}
{% endblock %}
